Previous Thread
Next Thread
Print Thread
Rate Thread
#58026 04/12/2005 2:27 AM
Joined: Oct 2001
Posts: 24
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 24
Currently when a user posts a topic, there are two columns beneath the main message window: Instant Graemlins and Instant UBB Code(TM). My suggestion is to add a third column, called Instant Images. LK helped me with this mod back when I was using version 6.3 and it worked perfectly using the Instant Graemlins javascript. I used the mod to insert Arabic expressions as images instead of text, since not everyone has the Arabic language enabled in their operating system. The mod can be used for any images to be inserted. I had buttons similar to the Instant UBB Code buttons with an abbreviation of the Arabic expression and when a user selected the button, it would automatically insert the UBB image code and the link for the image.

I have not been able to adapt it to version 6.7, so if anyone can figure out how, I would appreciate it.

Sponsored Links
#58027 04/12/2005 3:31 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Should be relatively easy to adapt, do you have the code from your old version still?


- Allen wavey
- What Drives You?
#58028 04/13/2005 12:38 PM
Joined: Oct 2001
Posts: 24
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 24
For New Topic, Reply to Post, PM and Edit Post:

Code
Find:
-----
<TR bgcolor="$vars_style{TableColorStrip}">
<TD valign="top" width="33%">
<font face="$vars_style{FontFace}" size="$vars_style{TextSize}" color="$vars_style{TableStripTextColor}"><b>
$vars_wordlets{instant_graemlins}
</b></font></TD>
<TD valign="top" width="67%">
<font face="$vars_style{FontFace}" size="$vars_style{TextSize}" color="$vars_style{TableStripTextColor}"><b>
$vars_wordlets{instant_ubbcode}
</b></font></TD>
</TR>
<TR bgcolor="$vars_style{AltColumnColor1}">
<TD valign="top" align="left">
$smilie_list

</TD><TD valign="top" align="left">
<font face="$vars_style{FontFace}" size="1">
$ubb_code_buttons
</font>
</TD>
</TR>
Replace with:
-------------
<TR bgcolor="$vars_style{TableColorStrip}">
<TD valign="top" width="33%">
<font face="$vars_style{FontFace}" size="$vars_style{TextSize}" color="$vars_style{TableStripTextColor}"><b>
$vars_wordlets{instant_graemlins}
</b></font></TD>
<TD valign="top" width="34%">
<font face="$vars_style{FontFace}" size="$vars_style{TextSize}" color="$vars_style{TableStripTextColor}"><b>
$vars_wordlets{instant_ubbcode}
</b></font></TD>
<TD valign="top" width="33%">
<font face="$vars_style{FontFace}" size="$vars_style{TextSize}" color="$vars_style{TableStripTextColor}"><b>
Instant Graphics
</b></font></TD>
</TR>
<TR bgcolor="$vars_style{AltColumnColor1}">
<TD valign="top" align="left">
$smilie_list

</TD><TD valign="top" align="left">
<font face="$vars_style{FontFace}" size="1">
$ubb_code_buttons

</font>
</TD>
<TD valign="top" align="left">
<a href="javascript: x()" onclick="DoSmilie('img.gif');"><img src="$vars_config{NonCGIURL}/bbtitle.gif" border="0" alt="Title"></a>
</TD>
</TR>

#58029 04/13/2005 4:29 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
is that it? Looks relatively easy... do you have a link to an example?


- Allen wavey
- What Drives You?
#58030 04/13/2005 10:17 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Untested:

OPEN public_common.pl

FIND:

Code
$instant_ubbcode_block = qq~
$TBT

<tr bgcolor="$vars_style{TableColorStrip}">
<td valign="top" width="25%">
<font face="$vars_style{FontFace}" size="$vars_style{TextSize}" color="$vars_style{TableStripTextColor}"><b>
$vars_wordlets{instant_graemlins}
</b></font></td>
<td valign="top" width="75%">
<font face="$vars_style{FontFace}" size="$vars_style{TextSize}" color="$vars_style{TableStripTextColor}"><b>
$vars_wordlets{instant_ubbcode}
</b></font></td>
</tr>

<tr bgcolor="$vars_style{AltColumnColor1}">
<td valign="top" align="left">
$smilie_list
 
</td><td valign="top" align="left">
<font face="$vars_style{FontFace}" size="$vars_style{FDTextSize}">
$ubb_code_buttons
</font>
</td>
</tr>

$TBB
~;
REPLACE WITH:

Code
$instant_ubbcode_block = qq~
$TBT

<tr bgcolor="$vars_style{TableColorStrip}">
<td valign="top" width="25%">
<font face="$vars_style{FontFace}" size="$vars_style{TextSize}" color="$vars_style{TableStripTextColor}"><b>
$vars_wordlets{instant_graemlins}
</b></font></td>
<td valign="top" width="45%">
<font face="$vars_style{FontFace}" size="$vars_style{TextSize}" color="$vars_style{TableStripTextColor}"><b>
$vars_wordlets{instant_ubbcode}
</b></font></td>
<td valign="top" width="30%">
<font face="$vars_style{FontFace}" size="$vars_style{TextSize}" color="$vars_style{TableStripTextColor}"><b>
Instant Graphics
</b></font></td>
</tr>

<tr bgcolor="$vars_style{AltColumnColor1}">
<td valign="top" align="left">
$smilie_list
 
</td><td valign="top" align="left">
<font face="$vars_style{FontFace}" size="$vars_style{FDTextSize}">
$ubb_code_buttons
</font>
</td><td valign="top" align="left">
<font face="$vars_style{FontFace}" size="$vars_style{FDTextSize}">
<a href="javascript: x()" onclick="DoSmilie('img.gif');"><img src="$vars_config{NonCGIURL}/bbtitle.gif" border="0" alt="Title"></a>
</font>
</td>
</tr>

$TBB
~;


- Allen wavey
- What Drives You?
Sponsored Links
#58031 04/16/2005 2:09 AM
Joined: Oct 2001
Posts: 24
Junior Member
Junior Member
Offline
Joined: Oct 2001
Posts: 24
Tested and working.

Thanks Allen!

#58032 04/17/2005 6:42 PM
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 good, glad it worked for you smile


- Allen wavey
- What Drives You?

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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
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 20221218)