Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Mod Name / Version: Finished-[6.5] Popup Graemlin Panel

Description: Allows you to limit the number of graemlins to be displayed on the posting pages and gives a link to click "More Graemlins" for a pop-up window where you can select from additional graemlins.


Working Under: UBB.Threads 6.5

Mod Status: Finished

Any pre-requisites: UBB Threads v6.5

Author(s): JustDave

Date: 05/26/04

Credits: JoshPet, AllenAyers & Astaran, Scroungr for bug fixes and updates

Files Altered: /templates/default/admin/features.tmpl, /languages/english/admin, /admin/features.php,
/admin/dofeatures.php, /templates/default/ubbt_instant_ubbcode.tmpl, ubbt.inc.php, /languages/english/instant_markup.php,
/languages/english/generic.php, /templates/default/quickreply.tmpl


New Files: graemlinpanel.php

Database Altered: No

Info/Instructions: Essential to keep page load times down and your layout clean if you have lots of graemlins


Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


##ADDED Graemlins to Quickreply Box.

##ADDED WHERE G_Active='1' for active Gramelins only
Attachments
114094-114094-graemlinpanel.6.5.zip (0 Bytes, 225 downloads)

Last edited by scroungr; 11/16/2004 8:59 AM.
Sponsored Links
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Thanks


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803


you read my mind. I was hoping this was one of the first ones......

Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
I see that showflat.tmpl and showthreaded.tmpl aren't included on the changed files list. Will this be updated to add the "More Graemlins" link to the new stock Quick Reply boxes?

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
[:"red"]NEW VERSION UPLOADED [/]

Now includes the quickreply.tmpl instructions

Sponsored Links
Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
I guess I should have known that the quickreply is it's own template now that it's stock. Thanks

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
Im getting this error when I click on the "more grams" link in the quick reply and in the post or reply pages.

Code
 Warning: main(includes/hack.inc.php): failed to open stream: No such file or directory in /home/leetgame/public_html/graemlinpanel.php on line 21<br /><br />Fatal error: main(): Failed opening required 'includes/hack.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/leetgame/public_html/graemlinpanel.php on line 21<br /> 

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
line 21 reads. "require ("includes/hack.inc.php");"

I dont have that file in my includes dir?

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
well then point it to main.inc.php instead.. we are tossing around the idea of making a standard hack.inc.php so we won't always have to change things.. so just point it to main.inc.php

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
My instant greamlins don't show up. I don't see a specific screen that says themes in the control panel. I do see a max greamlin list and have set it to 10.

Trying to setup a threadsdev user but can't verify my fake email account .. see the need for a mod.

Sponsored Links
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
ok threadsdev setup
http://www.steelheader.net/6.5/ubbthreads.php?Cat=0

The popup panel works when you find the dot below more greamlins.

I double checked the hack files and they met the instructions.

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
Where, in threads 6.5 is the option to change how many are shown. I cant find it in the control panel?

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Okay Chaos its in Feature Settings in the admin panel right under the allow images/images in signatures.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
about the graemlins not showing Smilesforu , mine was like that also until I set the above setting.

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
I tried updating greamlin settings in features... it changes them but still no greamlins.

stumped.
Looks like a language file problem but I don't see it.

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
working sweet.....

How would I go about making them load in multiple pages instead of one major page. the 56k'er are starting to complain that the page loads slow. If it would load like 20 on a page and have something like (1/2/3/4/5) on the bottom as pages they can click to view the other grams.....

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
well you would really need to rewrite this script to allow for multiple pages...

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
oh, nevermind then....

Imthinking about setting up something like here that has them listed in a section. then they can just use the image tag and put the location of the smiley.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
yeah Josh modified well I think someone did it for him

Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
Any one have a nice zipped collection of graemlins? And an easy way to bulk upload em?

Joined: Mar 2004
Posts: 118
Journeyman
Journeyman
Offline
Joined: Mar 2004
Posts: 118


Kind regards,
PaNTerSan
Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
Ok I got a lot of em now. (Thanks all) is there a way to bulk load them into the database?

Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
bump


Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
6.5 makes bulk uploading easy.

Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
how so?

I uploaded them to my graemlins directory but they don't show up in the list.. I have to add 1 at a time?

Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
It would be nice if it were like the style sheets and saw every thing in the directory?! Then allow me to go thru and edit/delete & assign code. & order.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
yeah one at a time.

Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474

Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
K I managed to get a lot bulk loaded I am too tired to explain how I did it but I will come back later and do so

Also the panel is showing graemlins marked inactive!

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Thanx OW updated file atachment had to add
WHERE G_Active='1'
so it only pulled active graemlins

Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
Ok I what I did was this... I downloaded the contents of the w3t_Graemlins table to see how it is formatted. What I did then was upload all my files to the graemlin folder. Then I used my terminal app to capture a list of all the file names in that folder. I converted it and imported it into FileMaker. Then added some strings to recreate the necessary insert lines. for each of the 475 new graemlins. Then i exported the file and tweaked it a bit in bbedit. then backup my original. I uploaded the new file. It worked too well All 475 graemlins were there it took forever to see all of em in the CP so finally when it loaded i went through and deleted almost half as many were dups and or just vulgar or dumb.

But it isn't too terribly hard to do a bulk upload.

But now I need a way to delete all the unused graemlins in the folder that are not in the db? I thought the script would delete the graemlin like it does for the post icon? but I guess not.

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
Did anyone get the pop up page to be able to split into multiple pages. Would work if you have about 30 or 40 even 100 images that have to load in the popup. If it was able to display something like 20 per page (or whatever) and add 1|2|3|4| to the bottom to link the other pages.

just an Idea again

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
slight bump :-O

Joined: May 2004
Posts: 43
User
User
Offline
Joined: May 2004
Posts: 43
I've just tried doing this one, but when changing the ubbt.inc.php file, it wants me to find this code:

[]global $config,$myprefs,$thispath,$tempstyle,$ubbt_lang,$debug,$dbh,$user;[/]

Our file has it without $user; at the end, so I added it anyway. Once uploaded, I got this error:

[]Parse error: parse error, unexpected T_CLASS, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' on line 3086[/]

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
please post the line you have in there in place.

Joined: May 2004
Posts: 43
User
User
Offline
Joined: May 2004
Posts: 43
This is the line I have in there:

[]global $config,$myprefs,$thispath,$tempstyle,$ubbt_lang,$debug,$dbh;[/]

I have various other modifications in place, so maybe this was changed when I installed them?

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
anmd that is line 3086? cause mine only goes up to 2171..
otherwise it looks fine? try changing the line back.. Does it still toss the same error?

Joined: May 2004
Posts: 43
User
User
Offline
Joined: May 2004
Posts: 43
It might have been 2086, come to think of it. I re-uploaded the original file, however, and the forum is back to normal without the modification. I will have another go at editing the file, and see if I still get the error

*edit* The line in question was this one:

[]class user {[/]

Last edited by SG; 11/02/2004 11:12 AM.
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
OK SG thanx

basically its just saying to change the line in the instant_ubbcode function

to
global $config,$myprefs,$thispath,$tempstyle,$ubbt_lang,$debug,$dbh,$user;

so look for the

function instant_ubbcode() {

and under that try this

global $theme,$config,$myprefs,$thispath,$tempstyle,$ubbt_lang,$debug,$dbh,$user;

in place of that global call you see..

let me know what happens and if ya want I can try it. thats the line I have on my server. But we may not have the same mods installed.

Joined: Sep 2006
Posts: 75
Power User
Power User
Offline
Joined: Sep 2006
Posts: 75
Hi Dave,

We've installed this mod and it works very well. We have one small problem though. The "More Graemlins" link has (it seems) appeared in a table header, with our table header background color. Also, the link is barely clickable - you have to get the mouse in a 1 pixel area at the bottom of the link text.

Any ideas?

Page 1 of 3 1 2 3

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)