random image mod??

This forum is now closed as part of retiring phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Post Reply
ohfishing
I've Been Banned!
Posts: 95
Joined: Thu Sep 23, 2004 1:20 am

random image mod??

Post by ohfishing »

Hello, I run phpbb2 2.0.10 and coppermine gallery 1.3.2 ... here is the gallery http://www.ohfishing.com/v-web/bulletin ... /index.php Is there a way I can add a "random image" or " latest additions" gallery bar (or block) to my main forum index?
geocator
Registered User
Posts: 16242
Joined: Fri Jan 09, 2004 11:56 pm
Location: On dry land
Contact:

Post by geocator »

Search the coppermine forums, they have code for this posted there.
ohfishing
I've Been Banned!
Posts: 95
Joined: Thu Sep 23, 2004 1:20 am

Post by ohfishing »

can you please tell me what php file in phpbb2 i insert the code in , i wanted the insert on my main forum index above the forum block
geocator
Registered User
Posts: 16242
Joined: Fri Jan 09, 2004 11:56 pm
Location: On dry land
Contact:

Post by geocator »

It really depends on what you are inserting in.
ohfishing
I've Been Banned!
Posts: 95
Joined: Thu Sep 23, 2004 1:20 am

Post by ohfishing »

i am inserting in coppermine random image code from my coppermine / phpbb gallery, i followed directions on a coppermine mod, and it says to take a code and insert it where i want it on phpbb, i dont know where to put it, i want it on forum index above forum block (top header?)
geocator
Registered User
Posts: 16242
Joined: Fri Jan 09, 2004 11:56 pm
Location: On dry land
Contact:

Post by geocator »

If it is HTML you need to edit index_body.tpl.

If it is php code it is much more complicated.
ohfishing
I've Been Banned!
Posts: 95
Joined: Thu Sep 23, 2004 1:20 am

Post by ohfishing »

uh oh... here is what im trying to do ...
Edit the page where you want the thumbnail to appear on: somewhere at the beginning of the page add something like this: <? include_once("/home/yourdomain/public_html/coppermine/ssi.php"); ?>(change the path to match the place where you uploaded ssi.php to).
geocator
Registered User
Posts: 16242
Joined: Fri Jan 09, 2004 11:56 pm
Location: On dry land
Contact:

Post by geocator »

Yeah, thats what I was afraid of. You are gonna have to instal the extremestyles MOD that lets you put php in your templates.

http://www.phpbb.com/phpBB/viewtopic.ph ... eme+styles
ohfishing
I've Been Banned!
Posts: 95
Joined: Thu Sep 23, 2004 1:20 am

Post by ohfishing »

geo, i installed the mod, (im not sure about the chmod 777, i already had an existing cache folder) with extreme mod installed, i can now insert this code?
geocator
Registered User
Posts: 16242
Joined: Fri Jan 09, 2004 11:56 pm
Location: On dry land
Contact:

Post by geocator »

Yes, you can put it right in the tpl files whever you want it. In this cas I would think index_body.tpl
ohfishing
I've Been Banned!
Posts: 95
Joined: Thu Sep 23, 2004 1:20 am

Post by ohfishing »

OK... I have chmode 777 a NEW cache folder, I moved all the files (2) from the old cache folder to the new... now im ready to try this...
ohfishing
I've Been Banned!
Posts: 95
Joined: Thu Sep 23, 2004 1:20 am

Post by ohfishing »

Geo, I inserted the code and nothing shows up on my forum the code i inserted is
<? include_once("/.panel/web/bulletin/phpBB2/cpg132/ssi.php"); ?>
templates/softblue/index_body.tpl

Code: Select all

<table align="right"> {SOW}
	<tr>
		<td><span class="nav"><a href="{U_VIEW_OLDER_TOPIC}" class="nav">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}" class="nav">{L_VIEW_NEXT_TOPIC}</a></span></td>
		</tr>
</table>
<br />
<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
  <tr> 
	<td align="left" valign="bottom"><span class="gensmall">
	<!-- BEGIN switch_user_logged_in -->
	{LAST_VISIT_DATE}<br />
	<!-- END switch_user_logged_in -->
	{CURRENT_TIME}<br /></span><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td><td align="center" valign="bottom"><span class="gensmall">
{L_HAPPY_ANNIVERSARY}
<!-- BEGIN joined_date -->
{joined_date.USERNAME}  ({joined_date.YEARS}),&nbsp;
<!-- END joined_date -->
</span>
</td>

	<td align="right" valign="bottom" class="gensmall">
		<!-- BEGIN switch_user_logged_in -->
		<a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /><a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a><br />
		<!-- END switch_user_logged_in -->
		<a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>
  </tr>
</table>
<div class="forumlinemain">
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
    <!-- BEGIN catrow -->
  <tr> 
	<th colspan="2" class="thCornerL" height="25" nowrap="nowrap" align="left">&nbsp;&curren;&nbsp;<a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></th>
	<th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
	<th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_POSTS}&nbsp;</th>
	<th class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
  </tr> <? include_once("/.panel/web/bulletin/phpBB2/cpg132/ssi.php"); ?>
  <!-- BEGIN forumrow -->
  <tr> 
	<td class="row1" align="center" valign="middle" height="50" width="10%"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}"  alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
	<td class="row2" width="90%" height="50"><img src="templates/SoftBlue/images/icon_mini_faq.gif" border="0" alt="" hspace="3" /><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
	  </span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
	  </span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
	<td class="row1" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
	<td class="row1" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
	<td class="row3" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
  </tr>
  <!-- END forumrow -->
  <!-- END catrow -->
</table>
</div>
<br />
<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">
<div class="forumlinemain">
  <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
	<tr> 
	  <td class="catHead" height="28"><a name="login"></a><span class="cattitle">{L_LOGIN_LOGOUT}</span></td>
	</tr>
	<tr> 
	  <td class="row1" align="center" valign="middle" height="28"><span class="gensmall">{L_USERNAME}: 
		<input class="post" type="text" name="username" size="10" />
		&nbsp;&nbsp;&nbsp;{L_PASSWORD}: 
		<input class="post" type="password" name="password" size="10" maxlength="32" />
		&nbsp;&nbsp; &nbsp;&nbsp;{L_AUTO_LOGIN} 
		<input class="text" type="checkbox" name="autologin" />
		&nbsp;&nbsp;&nbsp; 
		<input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
		</span> </td>
	</tr>
  </table></div>
</form>
<!-- END switch_user_logged_out -->
<div class="forumlinemain">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
  <tr> 
	<td class="catHead" colspan="2" height="28"><table width="100%">
<tr>
<!--
	<td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
 -->
	<td class="row1" align="center" valign="middle" rowspan="2"><span class="mainmenu">{L_NAME_WELCOME}</span><BR /><span class="mainmenu">{U_NAME_LINK}</span><BR /><BR />{AVATAR_IMG}</td>


<td width="50%" align="right"><span class="cattitle"><a href="{U_MARK_READ}" class="cattitle">{L_MARK_FORUMS_READ}</a></span></td>
</tr>
</table></td>
  </tr>
  <tr> 
	<td class="row1" align="left" colspan="2"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}<br />{L_ONLINE_EXPLAIN}</span></td>
</tr>
<tr> 	<td class="catHead" colspan="3" height="28"><span class="cattitle">Board Statistics - Forum Legend</span></td>
  </tr>
  <tr> 
	<td class="row2" align="left"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}<br />{L_RANDOM_USER} {RANDOM_USER_LINK}<br /></span></td>
<td class="row1" align="right"><table cellspacing="3" border="0" align="center" cellpadding="0">
  <tr> 
	<td width="20" align="center"><img src="templates/SoftBlue/images/folder_new_big.gif" alt="{L_NEW_POSTS}"/></td>
	<td><span class="gensmall">{L_NEW_POSTS}</span></td>
	<td>&nbsp;&nbsp;</td>
	<td width="20" align="center"><img src="templates/SoftBlue/images/folder_big.gif" alt="{L_NO_NEW_POSTS}" /></td>
	<td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
	<td>&nbsp;&nbsp;</td>
	<td width="20" align="center"><img src="templates/SoftBlue/images/folder_locked_big.gif" alt="{L_FORUM_LOCKED}" /></td>
	<td><span class="gensmall">{L_FORUM_LOCKED}</span></td><!-- Clock Code: Start -->
<br />
<table align="center" cellpadding="3" cellspacing="1" border="0" class="forumline">
  <tr>
    <td class="catHead" colspan="1" align="center">
	<span class="cattitle">{CLOCK_NAME}</span>
	</td>
  </tr>
  <tr>
	<td align="center" valign="middle">

	<div align="center"><embed width="170" height="150" src="./Clock.swf">
    </div> 
	
	</td>
  </tr>
</table>
<!-- Clock Code: End -->

  </tr>
</table>
</td>
</tr>
</table>
</div>
<br clear="all" />

[/code]
Post Reply

Return to “[2.0.x] MOD Requests”