Joined: Jun 2002
Posts: 62
Power User
Power User
Joined: Jun 2002
Posts: 62
[]
Charles said: well the panel generator uses the GD library could you have a file with the following if you have php 4.3 or more.
<? gd_info(); var_dump(gd_info());?> and give me a link to it? thanks
[/]
I still have php 4.2.2 but I am upgrading to the 4.3.1 now.
I also used the exe that only put the binaries on for the 4.2.2 and I am going to do 4.3.1 manualy to get the gd lib.
Joined: Feb 2001
Posts: 104
Journeyman
Journeyman
Joined: Feb 2001
Posts: 104
Ok, we're getting closer then. What would be the command line to do that? so far its --with-zlib etc, so what would the --with be to get the ttf in?
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Joined: Jan 2002
Posts: 674
Any special tricks to adding customized stick holding images? Made a image and added it to my generator and it didn't show up as one of the images. May just be me... off to try other images.
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Joined: Oct 2000
Posts: 2,667
you need to add all the info in the database wo that the smilie will be aligned properly. some day when I find the time I will write a how to
right now I have to figure why it doesn't work anymore here
Do you believe in love at first sight, or should I walk by again?
Joined: Mar 2003
Posts: 159
Member
Member
Joined: Mar 2003
Posts: 159
Please tell me where the error is that is not letting this work.
[]
// #####################################################################
// Create the instant graemlin/ubbcode
// #####################################################################
function instant_ubbcode() {
global $theme,$config,${$config['cookieprefix']."w3t_language"},$thispath,$tempstyle,$ubbt_lang,$debug,$dbh;$user;
$langfile = ${$config['cookieprefix']."w3t_language"};
if (!$langfile) {
$langfile = $config['language'];
}
require ("$thispath/languages/$langfile/instant_markup.php");
// --------------------------------------------------
// We need to grab all of the graemlins out of the db
$query = "
SELECT G_Code,G_Smiley,G_Image
FROM {$config['tbprefix']}Graemlins
";
$sth = $dbh -> do_query($query);
$i=0;
$gnum = 0;
$remotelink = "";
$graemlinlist="";
while (list($code,$smiley,$image) = $dbh -> fetch_array($sth)) {
if ($smiley) {
$code = $smiley;
} else {
if (stristr("$code","$")) {
eval("\$code = $code;");
}
$code = ":$code:";
}
if ($gnum < $theme['max_graemlins']) {
$graemlinlist .= <<<EOF
<a href="javascript:void(0)" onclick="insertAtCaret(document.replier.Body, ' $code'); document.replier.Body.focus();"><img src="{$config['images']}/graemlins/$image" border="0" alt="$code" /></a>
EOF;
}
else {
$remotelink = "<a href="javascript:void(0)" onclick="openGraemlinPanel()">{$ubbt_lang['MORE_G']} >>></a>";
}
EOF;
$i++;
$gnum++;
if ($i==6) {
$i=0;
if ($gnum < ($theme['max_graemlins'] +1)) {
$graemlinlist .= "<br />";
}
if( (preg_match("/-1-/",$user['U_Groups'])) or (preg_match("/-2-/",$user['U_Groups'])) or (preg_match("/-3-/",$user['U_Groups']))) {
$showpanelgenerator="<p align="center"><a href="javascript: x()" onclick="window.open('pano/popup.php','panelpopup','Width=510,height=320');">Panel Generator</a></p>";
}else{
$showpanelgenerator="";
}
}
}
$graemlinlist .= $remotelink;
if (!$debug) {
include("$thispath/templates/$tempstyle/ubbt_instant_ubbcode.tmpl");
}
return $template;
}
[/]
And yes, I am
NEW
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Depends What error you are getting? This requires some specific graphic libraries on your server too.... so I haven't been able to make this work everywhere. Some depends on server setup.
Joined: Mar 2003
Posts: 159
Member
Member
Joined: Mar 2003
Posts: 159
[]JoshPet said: Depends What error you are getting? This requires some specific graphic libraries on your server too.... so I haven't been able to make this work everywhere. Some depends on server setup. [/] Josh, Thanks for the quick reply! I am not getting an error, was trying to figure out if I had an error in the code somewhere. It just plain out right doesn't work. Is there anything I can check?
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Elaborate on "doesn't work right".
Some issues can be permissions related, others can be not having the right libraries installed with PHP.
[]Pre-requisites - server must have the GD library and compiled with ttfsupport [/]
This is probably one of the most complex things to configure.
So post smoe specifics and probably Charles may have some advice.
Joined: Mar 2003
Posts: 159
Member
Member
Joined: Mar 2003
Posts: 159
[]
JoshPet said: Elaborate on "doesn't work right".
Some issues can be permissions related, others can be not having the right libraries installed with PHP.
[]Pre-requisites - server must have the GD library and compiled with ttfsupport [/]
This is probably one of the most complex things to configure.
So post smoe specifics and probably Charles may have some advice.
[/]
I do know I have GD installed, as I am using it for PP. If I goto
http://www.socaps.com/ubbthreads/pano/porteurs.php it does show them ??
The link on the add post page is not showing up bellow the Graemlin link.
Bobby
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Oh so you're just not getting the link? Did you add $showpanelgenerator into the ubbt_instant_ubbcode.tmpl file?
Joined: Mar 2003
Posts: 159
Member
Member
Joined: Mar 2003
Posts: 159
[]JoshPet said: Oh so you're just not getting the link? Did you add $showpanelgenerator into the ubbt_instant_ubbcode.tmpl file? [/] Yes, I have I have attached the ubbt_instant_ubbcode.tmpl file This is driving me crazy !!!
Attachments
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Are you trying to restrict it to specific groups -
if not maybe take the group restriction thing out to eliminate stuff until you get it working
Change this:
<br />if( (preg_match("/-1-/",$user['U_Groups'])) or (preg_match("/-2-/",$user['U_Groups'])) or (preg_match("/-3-/",$user['U_Groups']))) { <br /> $showpanelgenerator="<p align=\"center\"><a href=\"javascript: x()\" onclick=\"window.open('pano/popup.php','panelpopup','Width=510,height=320');\">Panel Generator</a></p>"; <br /> }else{ <br /> $showpanelgenerator=""; <br /> } <br /> To this:
<br /> $showpanelgenerator="<p align=\"center\"><a href=\"javascript: x()\" onclick=\"window.open('pano/popup.php','panelpopup','Width=510,height=320');\">Panel Generator</a></p>"; <br />
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
little should be different for this mod, should work on newer versions too, eh?
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah, it's really almost an addon = so it should work with 6.4 although I haven't tried it yet.
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Joined: Oct 2000
Posts: 2,667
why almost an addon?? it IS an addon
the only hacking bit is ading the link
talking about this I still have some bugs to fix on it ...
Do you believe in love at first sight, or should I walk by again?
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
well, I had considered making a .classic version, but this relies quite a bit on mysql and validation against the threads db... so prolly not
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Joined: Oct 2000
Posts: 2,667
was planning on that too
ask my teachers to stop bugging me about my thesis and I will do it
Do you believe in love at first sight, or should I walk by again?
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
will do
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Was gonna load this on my host and am wondering whats the trials and tribulations and whats the latest source? Is there anything to be wary of and what database the table script writes to?
Joined: Sep 2003
Posts: 67
Power User
Power User
Joined: Sep 2003
Posts: 67
Is this coming back for 6.4 as it's a great mod!
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
doesn't need to. this is a standalone and is independent of the threads version so will work with any version of threads.
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Joined: Oct 2000
Posts: 2,667
the next version will probably be for 6.5 as there is a number of changes, mainly in the censor bit.
Do you believe in love at first sight, or should I walk by again?
Joined: Sep 2003
Posts: 67
Power User
Power User
Joined: Sep 2003
Posts: 67
Ok thanks. I'm looking forward to re-introducing it Charles, it's awesome.
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
BTW I am using this version still with threads 6.4.1 and it works great.
Joined: Mar 2004
Posts: 118
Journeyman
Journeyman
Joined: Mar 2004
Posts: 118
[]
scroungr said: BTW I am using this version still with threads 6.4.1 and it works great. [/]
Could you please email it to me
Kind regards, PaNTerSan
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Hmm just noticed Charles removed the original version? I would contact charles and see why he removed it and just didn't update a new version into the attachments when he released his next incarnation so unless he says I can. I won't let me shoot him a PM.
Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
Cripes! Whatever happened to this Charles???? I went to install it and don't have the .zip anymore.... Anyone??
Some people read their stars..... I choose to write my own
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
I shot him a PM and never got a reply...
Joined: Jul 2001
Posts: 1,157
Likes: 82
coffee and code
coffee and code
Joined: Jul 2001
Posts: 1,157
Likes: 82
its right here...
* * ATTACHED FILE * *
Attachments
Joined: May 2003
Posts: 1,068
Junior Member
Junior Member
Joined: May 2003
Posts: 1,068
Here is a quick and dirty hack to show a link for the Panel Generator next to the Quick Reply box in showflat. (Thanks to Omegetron for the snippets from him photopost mod)
<br />Open showflat.php <br /> <br />## <br />## Find: <br />## <br /> <br />function openGraemlinPanel() { <br /> graemlinWindow=window.open('{$config['phpurl']}/graemlinpanel.php','graemlinpanel','scrollbars=yes,resizable=yes,width=300,height=400'); <br /> if (graemlinWindow.opener == null) graemlinWindow.opener = self; <br />} <br /> <br /> <br />## <br />## After add: <br />## <br /> <br />function openPanelGenerator() { <br /> photoWindow=window.open('{$config['phpurl']}/pano/popup.php','popup','scrollbars=yes,resizable=yes,width=510,height=320'); <br /> if (photoWindow.opener == null) photoWindow.opener = self; <br />} <br /> <br /> <br />## <br />## Find: <br />## <br /> <br /><a href="javascript:void(0)" onclick="openGraemlinPanel()">{$ubbt_lang['USE_GRAEMLINS']}</a><br /><br /> <br /> <br />## <br />## After add: <br />## <br /> <br /><a href="javascript:void(0)" onclick="openPanelGenerator()">Panel Generator</a><br /><br /> <br />
Joined: Oct 2000
Posts: 2,667
Veteran
Veteran
Joined: Oct 2000
Posts: 2,667
[]scroungr said: I shot him a PM and never got a reply... [/]forgot to update my email adress doh! well I can assure you that the current version should not work on 6.5 unless so bits are redone but I do not plan to update this mod until the next gen ubb is in beta stage.
Do you believe in love at first sight, or should I walk by again?
Joined: Sep 2001
Posts: 129
Member
Member
Joined: Sep 2001
Posts: 129
yep it works just need to change a few paths in the scripts.
Regards Clint Running on WIN2003 Web Server. Paranoid people get followed too!
Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
What paths are you having to change in what scripts?
Some people read their stars..... I choose to write my own
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.
Posts:
254
Joined: January 2000
Forums63
Topics37,575
Posts293,930
Members13,823
Most Online6,139Sep 21st, 2024
Currently Online
Topics Created
Posts Made
Users Online
Birthdays