1
Here is another simple hack for people that wish to add direct linking code, [img] tags etc. to displayed image pages for use in other Forums, Gallerys, Email and Blogs
Example can be seen
here half way down the page.
Open /modules/xcgal/templates/xcgal_display.html and find the following lines of code
<td class="<{cycle name="keys" values="even,odd"}>" valign="top" nowrap><{$info.key}>:td>
<td class="<{cycle name="values" values="even,odd"}>"><{$info.value}>td>
tr>
<{/foreach}>
table>
div><br />
directly below the above on the next line paste the following code
<table width="100%" border="1" align="center">
// bb, img and html code hack by stuie200 @ xoops.org
<form>
<tr>
<td class="Head">Use this image in your Forums or Blogstd>
tr>
<tr>
<td class="odd"><div align="center"><strong>Share URL - strong>Email & IM div>td>
tr>
<tr>
<td align="center"><textarea name="DirectLink" cols=90 rows="4" readonly="readonly" id="DirectLink" style="text-align:center; padding-top:10px; padding-left:10px; padding-right:10px; overflow:hidden" onFocus="this.select()"><{$xoops_url}>/modules/xcgal/<{$picture_url}>textarea>td>
tr>
<tr>
<td class="odd"><div align="center"><strong>Direct Link - strong>Layout Pages div>td>
tr>
<tr>
<td align="center"><textarea name="DirectLink" cols=90 rows="4" readonly="readonly" id="DirectLink" style="text-align:center; padding-top:10px; padding-left:10px; padding-right:10px; overflow:hidden" onFocus="this.select()"><{$xoops_url}>/modules/xcgal/<{$picture_url}>textarea>td>
tr>
<tr>
<td class="odd"><div align="center"><strong>HTML Code - strong>Websites & Blogs div>td>
tr>
<tr>
<td align="center"><textarea name="Blogs" cols=90 rows=4 readonly="readonly" id="Blogs" style="text-align:center; padding-top:10px; padding-left:10px; padding-right:10px; overflow:hidden" onFocus="this.select()"><img src="<{$xoops_url}>/modules/xcgal/<{$picture_url}>">textarea>td>
tr>
<tr>
<td class="odd"><div align="center"><strong>IMG Code - strong>Forums & Bulletin Boards div>td>
tr>
<tr>
<td align="center"><textarea name="Forums" cols=90 rows=4 readonly="readonly" id="Forums" style="text-align:center; padding-top:10px; padding-left:10px; padding-right:10px; overflow:hidden" onFocus="this.select()">[img]<{$xoops_url}>/modules/xcgal/<{$picture_url}>[/img]textarea>td>
tr>form>
table>
Save, upload and then update the xcgal module for changes to apply.
The code is very crude but it does work very well. Maybe somebody can take this and improve on it.
Hope its of some help to somebody
Regards
Stuart
"I'm as confused as a baby in a topless bar."