1

(4 replies, posted in Hacks & Tricks / FAQ)

MOVED FROM SCRIPT SUGGESTIONS

Hey Pavel (or eNigma if you still have the zip file),

This sounds like a very useful add-on, can Pavel or eNigma please attach it to this post please?

Just a note of congrats to FI-DD, this hack is the daddy !!
Works perfectly in 1.4.5, no problems installing or using.

Now I've got the pop-up set to true & the .js file in my main folder everything is 100% perfect.
I'm well impressed mate, a real goodie https://cutephp.com/forum/style_emoticons/default/clapping.gif

Thanks mate, have just grabbed it, will try to mess with it over the weekend https://cutephp.com/forum/style_emoticons/default/smile.gif

Hope any bugs & updates have been carried out on the 136 version as well as the 141 !! https://cutephp.com/forum/style_emoticons/default/wink.gif

Thanks & Praise...
Dubs'

Once again FI-DD I give you maximum respect for a thoroughly useful hack *bow*

This is something every cutenews should have as standard, imho.
This will no doubt come in very handy on a few of my sites, only one question sticks:
Does it work on 1.3.6 or just 1.4.1 mate ??

Thanks again...
Dubs'

Ages ago I wrote a little tutorial for the old forum, basically it's a simple way of making a skin to suit your site beter than the stock one:

The only thing you need to do is grab the "modern" theme HERE

Follow it's install instructions & make another copy of the folder, call it "modern2" or whatever. You'll need to rename the "modern.skin.php" file to "modern2.skin.php" (or whatever)

Open the graphics files with your fave graphic's app & play with them, use gradients, fades, colours to match your current site, just basically mess about https://cutephp.com/forum/style_emoticons/default/smile.gif

When saving the new graphics, use the original filenames but add a 2 on the end, like so: mdrn_bottombg2.gif

You'll also need to edit your new "skin.php", find the image filenames & add a 2 on the end blahblah2.gif so the new theme will use your graphics.

The results can be quite simple but effective, like this:

http://dubster.co.uk/graphics/cute-blue.gif

http://dubster.co.uk/graphics/cute-blue-2.gif

Like I said, it's only a minor alteration, but it'll make things look more like your site, if that's what you need.

Good Luck & have fun okay.

Dubs'

It's been pointed out that the current search.php does not go as high as line 255 sad

So I'm hoping we can get a more complete idea of how to use this hack.

Dubs'

Name: Clickable Thumbs
Author: MadMac
CuteNews Compatibility: 1.3.6 - * (no incompatibility reported yet)
Description: This is an easy solution for having clickable thumbs. A more advanced way can be found in the next post.
Popup-Images lets you upload 2 versions of images you want to include in your news, one full image & one thumbnail.
It then asks if you want to insert the image as a popup or standard image.
If you choose pop-up it inserts the code & thumbnail for you, so when a reader clicks the small image a larger one opens in a pop-up.
Demo: Click here for Download, Info and Test-Installation
Discussion Topic:
Instructions:
This hack written by MadMac - recoded for Cutenews 1.3.6 - August 2004

You have to modify some code in images.mdu (or replace the file with my version),
add some JavaScript to the page that includes your news, and upload one new file to your cutenews-directory.

Detailed instructions are on the page under the above link, and in the downloadable zip file.
Hope you like it...  https://cutephp.com/forum/style_emoticons/default/cool.gif
>>Download Page<<

OK, for starters, make a new page in Dreamweaver or whatever web design program you prefer.

Add a table, 1 row x 2 columns (2 boxes - left & right)

Align the table center or left, depending what you want to go for.

In the left cell, put a new table, 1 column wide, 5 rows high. This will be your nav bar.

In that 5 high table you made, write each page name in a cell of it's own, (home, news, sport, blog, guestbook for example) in the "url" box for each one, write the name of the page it's going to link to (index.php, news.php, sport.php etc)

Now save that page as index.php & make 4 copies of it, renaming the copies to suit. (index.php, news.php, sport.php etc)

Index will be your main entry page, so put relevant info in the right hand cell of that page.

news.php will be your main cutenews page, so in the right cell place the standard include code from the readme, making sure you're in code input mode, not wysiwyg!!

<?PHP
 include("path/to/show_news.php");
?>

In all other pages, just place your content in the right cell, or if it's a php guestbook, you can use the same include code from CuteNews, but pointing at the guestbook script instead, like this for example:
include("../guestbook/index.php");

This system is REALLY basic, but it'll get you up & running, you can make it look pretty once it works properly!!
In the CuteNews zip file you download you have example.php and example2.php which are pretty much a demo for this tutorial.


Hope that's given you some ideas.
Dubs'

This makes any links you place inside [link] tags, or insert with [quick-tags] open into a new window.

MAKE A BACKUP OF THESE FILES BEFORE EDITING THEM !!!

Open /inc/functions.inc.php and search for
function replace_news

Under that you'll find

"[url=]\\1[/url]",


Just add  target=_blank into it ( before the first > ) like this:

"[url=]\\1[/url]",

---------------------------------------------------------

Then open about.mdu in the same folder (/data/inc)
about 30 lines down you'll find:

 '[url=]' +var2+ '[/url]';


Again, just add target=_blank to it ( before the first > ), like so:

 '[url=]' +var2+ '[/url]';

Many Thanks to StealthEye for help with the 2nd part of this FAQ.