Found it ( search for thickbox, as scriptaculous didnt get it ) , just to be sure, I have to disable Javascript Effects Pack and Thickbox and then upload that scriptaculous and enable it ?
Or how is the correct way ?
Thanks.


![]() |
| | Thread Tools | Display Modes |
| |||
|
Found it ( search for thickbox, as scriptaculous didnt get it ) , just to be sure, I have to disable Javascript Effects Pack and Thickbox and then upload that scriptaculous and enable it ? Or how is the correct way ? Thanks. |
| |||
| Quote:
|
| ||||
|
You'll need that javascripts effects pack for private messaging, editing config options in the admin, and I believe on the Sneak page. There might be other places as well. In order to keep those working, try the optimized scriptalous found in the forums. You can also modify the thickbox_init.php so that it only loads on the story and index pages and the javascript effects pack to only load for the admin features. in /modules/thickbox/thickbox_init.php: change: PHP Code: PHP Code: For scriptaculous in /modules/scriptaculous/scriptaculous_init.php: change: PHP Code: PHP Code: Your mileage may vary. I never actually tried the above, but it should work. Best, Cent Quote:
|
| |||
|
Thanks again, cent. It works like a charm! For anyone following along, I am using Pligg 9.7.0, and this allows you to use thickbox to display a full size image on the 'story' page only, and the thumbnail on the 'upcoming' and 'published' pages links to the story pages instead of offering a full-size image. modify image_upload_settings.php so that it uses smarty variables. (line 70) Open link_summary.tpl, and below where you have entered (per default instructions): PHP Code: PHP Code: |
| ||||
|
Hi XSP, Thanks for providing the community with the tip. Tweaks like this is why I put there is an option for the smarty tags -- good use of them. My way is usually not always the best. ![]() What would be really great is to have a story page that doesn't contain the sidebar column. And then the photo could be placed where the 300x250 ad is on the right side of this Digg page http://www.digg.com/videos/people/Ki...His_Ass_Beaten. In fact, if there wasn't a sidebar column on the page, videos can also play in that 300x250 area as well. Best, Cent Quote:
|
| |||
|
Nice idea, cent. I sent you a PM with an example. If this is what you are talking about, I'll clean up my edits and post them here.
|
| |||
|
These edits are an addition to the previous edits I mentioned earlier. At this point on the 'published', 'upcoming' pages if an image upload is available, it shows a thumbnail which links to the story, and only on the story page is thickbox invoked to show the full-size image. Here are some further edits that will (on the story page) remove the sidebar, present a larger thumbnail, and create a new sidebar below the story section, to the right of the comments. To preserve your sanity and keep your beer spending within budget, PLEASE BACK UP ANY FILES THAT YOU EDIT BEFORE ATTEMPTING THESE EDITS. ![]() 1. In pligg.tpl, find: PHP Code: PHP Code: PHP Code: Paste into it: PHP Code: PHP Code: PHP Code: #contentbox_story {width:100%;} #below_story_wrap {} #below_story {margin-right:10px; float:left; width:75%;} #below_story_sidebar {width:20%; float:left;} That should be it. |
| |||
|
Cent, I have made another discovery: Since I modded the scriptaculous_init.php to not load on the story page, thickbox works as expected, but the tabs for the 'comments', 'who voted', etc do not work! Have you noticed this? Is there a workaround?
|
| |||
|
If you have been following along and have made the previous edits, here is a quick and easy way to add a default ad (or something) to the right side of the story page when there is not an image uploaded: Open link_summary.tpl, and FIND (remember, this is only if you have completed the other edits): PHP Code: PHP Code: If anyone else is using these, I would love to see your use of it or if you have additional ideas. |
| |||
| Quote:
Is there a solution to make thickbox and scriptaculous compatible ? Also when a user save an image, and you go to the saved stories, thickbox goes to a blank page and some other places too, because scriptaculous is active there. Any help is very apreciated. Thanks. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Upload Module (File and Image Attachment) | Yankidank | Free Modules | 268 | 02-03-2012 12:19 PM |
| Simple question: Has anyone got the image upload module to work? | Citizenslide | Questions and Comments | 7 | 07-30-2009 02:44 AM |
| [MOD] Image Upload Module (v0.93) -- Please test | cent | Questions and Comments | 54 | 05-01-2009 11:12 PM |
| Image Upload Module - Really confused | thefandango | Questions and Comments | 3 | 01-05-2009 12:01 PM |
| Image Upload Module -- Call for feature requests | cent | Questions and Comments | 12 | 11-15-2008 01:13 PM |