| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 7354|Reply: 5
Collapse the left

How to add ads on the mobile version of the forum?

[Copy link]
Post time: 2013-10-04 05:19
| Show all posts |Read mode
We can easily add ads on the desktop version .but how to add small ads on the mobile version of discuz and in the forum version?

Related collections:

  • · Tricks|Threads: 23, Subscribe: 3
Post time: 2013-10-04 09:22
| Show all posts
No DIY/AD module for mobile version. Try to edit HTML files.

path:
template\default\mobile
 Author| Post time: 2013-10-04 15:23
| Show all posts
kaaleth 2013-10-4 11:22
No DIY/AD module for mobile version. Try to edit HTML files.

path:

I know but.where to start editing in the code itself.since i do not know the place to add the code.lets say after every post in a thread.or on the first 3 posts
Post time: 2013-10-04 22:15
| Show all posts
template\default\mobile\forum\viewthread.htm
  1.                         <!--{if $post['first']}-->
  2.                             <!--{if !$_G[forum_thread][special]}-->
  3.                                 <div id="postmessage_$post[pid]" class="postmessage">$post[message]</div>
  4.                             <!--{elseif $_G[forum_thread][special] == 1}-->
  5.                                 <!--{template forum/viewthread_poll}-->
  6.                             <!--{elseif $_G[forum_thread][special] == 2}-->
  7.                                 <!--{template forum/viewthread_trade}-->
  8.                             <!--{elseif $_G[forum_thread][special] == 3}-->
  9.                                 <!--{template forum/viewthread_reward}-->
  10.                             <!--{elseif $_G[forum_thread][special] == 4}-->
  11.                                 <!--{template forum/viewthread_activity}-->
  12.                             <!--{elseif $_G[forum_thread][special] == 5}-->
  13.                                 <!--{template forum/viewthread_debate}-->
  14.                             <!--{elseif $threadplughtml}-->
  15.                                 $threadplughtml
  16.                                 <div id="postmessage_$post[pid]" class="postmessage">$post[message]</div>
  17.                             <!--{else}-->
Copy the Code
Here you can get FIRST post and POST (2nd, 3rd, 4th, etc.). Try it with and let us know.

Comments

working for me :)  Post time 2013-10-12 09:09
 Author| Post time: 2013-10-05 03:51
| Show all posts
kaaleth 2013-10-5 00:15
template\default\mobile\forum\viewthread.htmHere you can get FIRST post and POST (2nd, 3rd, 4th, etc ...

okay.thanks.will try soon.
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-24 06:08 GMT+3 , Processed in 0.057152 sec., 14 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list