Jump to content

Recommended Posts

Posted

buna ziua, ma tot chinui de ceva vreme si nu reusesc sa instalez DP32 Forum icons, ma poate ajuta cineva sa instalez , sau un tutorial ceva, astept raspuns

Multumesc. o zi placuta tutoror.

Posted

Tutorialul de instalare se afla chiar in arhiva cu modificarea in cauza, in fisierul ReadMe, si, arata cam asa:

Intro: Upload Files

Included in the package of this mod is a folder called Upload, upload the contents of this folder to your forums corresponding folders keeping the folders structure intact.

NOTE: If you have renamed your admin folder to something else (for example: myadminarea) and the upload directory of this mod contains a folder called admin, you need to rename it with the correct new name before uploading it. So following the example above you need to rename the folder admin to myadminarea.

Step 1: Installing the Application

Make the upload of upload folder content to your host. After that, on your Admin CP, go to System tab and click on -> Applications & Modules -> Manage Applications & Modules. In the end of this page, on Applications Not Installed, you'll see (DP32) Forum Icons. Click on Install link and after on Continue and wait until the application is installed.

Step 3: Edit Skin

Log in into ACP: Look & Feel -> Look & Feel -> Manage Skin Sets & Templates -> [choose skin] -> Manage Templates & CSS -> Board Index -> boardIndexTemplate

Find:

 
<td class='col_c_icon'>
<if test="hasUnread:|:$forum_data['_has_unread']">
<a id='forum_img_{$forum_data['id']}' href="{parse url="app=forums&module=forums&section=markasread&marktype=forum&forumid={$forum_data['id']}&returntoforumid={$this->request['f']}&i=1" base="public"}" data-tooltip="{$this->lang->words['bi_markread']}" class='forum_marker'><img src='{$this->settings['img_url']}/f_icon.png' /></a>
<else />
<img src='{$this->settings['img_url']}/f_icon_read.png' />
</if>
</td>[/code] Change to:
[code] <td class='col_c_icon'>
<if test="hasUnread:|:$forum_data['_has_unread']">
<a id='forum_img_{$forum_data['id']}' href="{parse url="app=forums&module=forums&section=markasread&marktype=forum&forumid={$forum_data['id']}&returntoforumid={$this->request['f']}&i=1" base="public"}" data-tooltip="{$this->lang->words['bi_markread']}" class='forum_marker'><if test="$forum_data['icon'] != '' AND $forum_data['icon'] !='0'">{$forum_data['icon']}<else /><img src='{$this->settings['img_url']}/f_icon.png' /></if></a>
<else />
<if test="$forum_data['icon'] != '' AND $forum_data['icon'] !='0'">{$forum_data['icon']}<else /><img src='{$this->settings['img_url']}/f_icon_read.png' /></if>
</if>
</td>
Find:
ipb.global.registerMarker( "forum_img_{$forum_data['id']}", "{$forum_data['img_new_post']}", 
Add above:
<if test="$this->settings['dp3_fi_mode'] == 'replace'">var unreadIcon = "{$forum_data
Now go to Forum View -> forumIndexTemplate Find:
										<td class='col_c_icon'>
<if test="$forum_data['_has_unread']">
<a id='forum_img_{$forum_data['id']}' href="{parse url="app=forums&module=forums&section=markasread&marktype=forum&forumid={$forum_data['id']}&returntoforumid={$this->request['f']}&i=1" base="public"}" data-tooltip="{$this->lang->words['bi_markread']}" class='forum_marker'><img src='{$this->settings['img_url']}/f_icon.png' /></a>
<script type='text/javascript'>
ipb.global.registerMarker( "forum_img_{$forum_data['id']}", "{$forum_data['img_new_post']}", markerURL + "&forumid={$forum_data['id']}" );
</script>
<else />
<img src='{$this->settings['img_url']}/f_icon_read.png' />
</if>
</td>[/code] Change to:
[code] <td class='col_c_icon'>
<if test="$forum_data['_has_unread']">
<a id='forum_img_{$forum_data['id']}' href="{parse url="app=forums&module=forums&section=markasread&marktype=forum&forumid={$forum_data['id']}&returntoforumid={$this->request['f']}&i=1" base="public"}" data-tooltip="{$this->lang->words['bi_markread']}" class='forum_marker'><if test="$forum_data['icon'] != '' AND $forum_data['icon'] !='0'">{$forum_data['icon']}<else /><img src='{$this->settings['img_url']}/f_icon.png' /></if></a>
<script type='text/javascript'>
<if test="$this->settings['dp3_fi_mode'] == 'replace'">var unreadIcon = "{$forum_data['icon_read']}";</if>
ipb.global.registerMarker( "forum_img_{$forum_data['id']}", "{$forum_data['img_new_post']}", markerURL + "&forumid={$forum_data['id']}" );
</script>
<else />
<if test="$forum_data['icon'] != '' AND $forum_data['icon'] !='0'">{$forum_data['icon']}<else /><img src='{$this->settings['img_url']}/f_icon_read.png' /></if>
</if>
</td>

Step 4: ACP Setup

Still inside the Admin CP, visit the Other Apps tab. There will be a section here entitled (DP32) Forum Icons. Click on it and have fun with this application!

  • Upvote 2

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

  • 6 months later...
Posted

Am adaugat tot, merge, dar cand pun  linia asta : 

 

<if test="$this->settings['dp3_fi_mode'] == 'replace'">var unreadIcon = "{$forum_data

 

Imediat imi apare asa:

 

help.png
 

Va rog sa-mi dati un PM cu rezolvarea.Multumesc!

Posted

Alte cauze:

  • incompatibilitatea hook-ului cu tema folosita (vezi cum se comporta pe default)
  • incompatibilitatea hook-ului cu versiunea IPB-ului folosit (vezi ce versiune ai si pentru ce versiune e destinat hook-ul)

Incearca un recache and rebuild din ACP pentru tema folosita (uite aici cum faci asta, daca nu stii: )

  • Upvote 1

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

  • 2 years later...
  • 1 year later...
Posted
On 4/14/2016 at 0:01 PM, GoLd said:

Eu nu gasesc acele coduri in  boardIndexTemplate

Daca nu respecti pas cu pas ce a zis @gaby nu are cum sa iti mearga . Dami un facebook sau email si te ajut eu cu cea mai mare placere !

Posted
On 4/15/2016 at 0:56 AM, sedativ123 said:

Daca nu respecti pas cu pas ce a zis @gaby nu are cum sa iti mearga . Dami un facebook sau email si te ajut eu cu cea mai mare placere !

L-am rezolvat,nu a mers deoarece nu trebuie sa copiezi tot codul cand il cauti cu ctrl+f 

 

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.